﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace SolutionModel
{
    public class MyHttpModule : IHttpModule
    {
        public void Dispose() { }

        public void Init(HttpApplication context)
        {

            context.EndRequest += new EventHandler(Application_EndRequest);
        }

    

        public void Application_EndRequest(object sender, EventArgs e)
        {

            //HttpApplication application = sender as HttpApplication;

            //HttpContext context = application.Context;

            //HttpResponse response = context.Response;

            //response.Write("这是来自自定义HttpModule中有EndRequest");
            SolutionModel.DBConfig.Dispose();

        }

    }
}
